home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12404 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  40 lines

  1. Path: news.ust.hk!cs_roger
  2. From: cs_roger@ug.cs.ust.hk (Lam Hong)
  3. Newsgroups: comp.lang.c++
  4. Subject: TEditfile class in Borland OWL
  5. Date: 19 Mar 1996 14:49:36 GMT
  6. Organization: The Hong Kong University of Science and Technology
  7. Message-ID: <4imhi0$7k6@ustsu10.ust.hk>
  8. NNTP-Posting-Host: csl3su35.cs.ust.hk
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Borland c++ experts,
  12.  
  13.     I am writing an large text editor. So I need to transfer
  14.     my data from my data class to TEditfile class instances.
  15.     
  16.     But when I try to use Transfer member function to set new
  17.     data of TEditfile class, the text is displayed in one single
  18.     line( with out line breaks at carrige return).
  19.     
  20.     The carrige return keys are printed as non-printable code.
  21.     
  22.     I use:
  23.     
  24.         Transfer(mybuffer,tdSetData)
  25.         
  26.     Where mybuffer is a char string pointer.
  27.         
  28.     I have tried to use EnableTranfer, but the result is the same.    
  29.     How to solve the problem? Did I miss important parts in setting
  30.     up data transfer mechanism?
  31.     
  32.     Thanks.
  33.     
  34. Roger.
  35.  
  36. --
  37. ============================ HKUST ¬L»Φ(cs_roger@cs.ust.hk) ======|
  38. ============================ ¡╗┤Σ¼∞º▐ñj╛╟╣qñl¡p║Γ╛≈╛╟¿tñTª~»┼ ====|
  39. ============================ URL http://home.ust.hk/~cs_roger ====|
  40.